package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /*
     * @description:新增员工
     * @author: song
     * @date: 2023/12/25 15:03
     * @param: [employeeDTO]
     * @return: void
     **/
    void save(EmployeeDTO employeeDTO);
    /*
     * @description:员工分页查询
     * @author: song
     * @date: 2023/12/26 10:34
     * @param: [employeePageQueryDTO]
     * @return: com.sky.result.PageResult
     **/
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);
    /*
     * @description:启用禁用员工账号
     * @author: song
     * @date: 2023/12/26 14:54
     * @param: [status, id]
     * @return: void
     **/
    void startOrStop(Integer status, Long id);
    /*
     * @description:根据id查询员工信息
     * @author: song
     * @date: 2023/12/26 15:26
     * @param: [id]
     * @return: com.sky.entity.Employee
     **/
    Employee getById(Long id);
    /*
     * @description:编辑员工信息
     * @author: song
     * @date: 2023/12/26 15:33
     * @param: [employeeDTO]
     * @return: void
     **/
    void update(EmployeeDTO employeeDTO);
}
